package com.qf.flinketl.flinkconfig;

import java.io.Serializable;

/**
 * @Description: @Author: KyrieFc @Date: 2023/10/22
 */
public class MapperConfig implements Serializable {
  private String serviceName;
  private Integer mapperParallelism;
  private String dataName;
  private boolean useRawData;
  private boolean needParsed;
  private boolean needFiltered;

  public MapperConfig() {}

  public MapperConfig(
      String serviceName,
      Integer mapperParallelism,
      String dataName,
      boolean useRawData,
      boolean needParsed,
      boolean needFiltered) {
    this.serviceName = serviceName;
    this.mapperParallelism = mapperParallelism;
    this.dataName = dataName;
    this.useRawData = useRawData;
    this.needParsed = needParsed;
    this.needFiltered = needFiltered;
  }

  /**
   * 获取
   *
   * @return serviceName
   */
  public String getServiceName() {
    return serviceName;
  }

  /**
   * 设置
   *
   * @param serviceName
   */
  public void setServiceName(String serviceName) {
    this.serviceName = serviceName;
  }

  /**
   * 获取
   *
   * @return mapperParallelism
   */
  public Integer getMapperParallelism() {
    return mapperParallelism;
  }

  /**
   * 设置
   *
   * @param mapperParallelism
   */
  public void setMapperParallelism(Integer mapperParallelism) {
    this.mapperParallelism = mapperParallelism;
  }

  /**
   * 获取
   *
   * @return dataName
   */
  public String getDataName() {
    return dataName;
  }

  /**
   * 设置
   *
   * @param dataName
   */
  public void setDataName(String dataName) {
    this.dataName = dataName;
  }

  /**
   * 获取
   *
   * @return useRawData
   */
  public boolean isUseRawData() {
    return useRawData;
  }

  /**
   * 设置
   *
   * @param useRawData
   */
  public void setUseRawData(boolean useRawData) {
    this.useRawData = useRawData;
  }

  /**
   * 获取
   *
   * @return needParsed
   */
  public boolean isNeedParsed() {
    return needParsed;
  }

  /**
   * 设置
   *
   * @param needParsed
   */
  public void setNeedParsed(boolean needParsed) {
    this.needParsed = needParsed;
  }

  /**
   * 获取
   *
   * @return needFiltered
   */
  public boolean isNeedFiltered() {
    return needFiltered;
  }

  /**
   * 设置
   *
   * @param needFiltered
   */
  public void setNeedFiltered(boolean needFiltered) {
    this.needFiltered = needFiltered;
  }

  public String toString() {
    return "MapperConfig{serviceName = "
        + serviceName
        + ", mapperParallelism = "
        + mapperParallelism
        + ", dataName = "
        + dataName
        + ", useRawData = "
        + useRawData
        + ", needParsed = "
        + needParsed
        + ", needFiltered = "
        + needFiltered
        + "}";
  }
}
